.class final Lcom/wqmobile/sdk/widget/aa;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private synthetic a:Lcom/wqmobile/sdk/widget/ADView;


# direct methods
.method constructor <init>(Lcom/wqmobile/sdk/widget/ADView;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/widget/aa;->a:Lcom/wqmobile/sdk/widget/ADView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/view/View;)V
    .locals 3

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/wqmobile/sdk/widget/aa;->a:Lcom/wqmobile/sdk/widget/ADView;

    sget-object v1, Lcom/wqmobile/sdk/widget/af;->a:Lcom/wqmobile/sdk/widget/af;

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/widget/ADView;->a(Lcom/wqmobile/sdk/widget/ADView;Lcom/wqmobile/sdk/widget/af;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/widget/aa;->a:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v0}, Lcom/wqmobile/sdk/widget/ADView;->a(Lcom/wqmobile/sdk/widget/ADView;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/widget/aa;->a:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v0}, Lcom/wqmobile/sdk/widget/ADView;->g(Lcom/wqmobile/sdk/widget/ADView;)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-gtz v0, :cond_1

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    :goto_0
    iget-object v1, p0, Lcom/wqmobile/sdk/widget/aa;->a:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v1}, Lcom/wqmobile/sdk/widget/ADView;->a(Lcom/wqmobile/sdk/widget/ADView;)Ljava/util/List;

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/wqmobile/sdk/model/AdvertisementProperties;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAction()Lcom/wqmobile/sdk/model/AdvertisementAction;

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/widget/aa;->a:Lcom/wqmobile/sdk/widget/ADView;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementAction;->getInteractive()Lcom/wqmobile/sdk/model/actiontype/Interactive;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/actiontype/Interactive;->getURL()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0, v2}, Lcom/wqmobile/sdk/widget/ADView;->a(Lcom/wqmobile/sdk/widget/ADView;Ljava/lang/String;Z)Z

    :cond_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/wqmobile/sdk/widget/aa;->a:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v0}, Lcom/wqmobile/sdk/widget/ADView;->g(Lcom/wqmobile/sdk/widget/ADView;)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    goto :goto_0
.end method
